//
//  HttpRequestManager.h
//  AFNetWorkingTest
//
//  Created by HawkingWang on 15/12/4.
//  Copyright © 2015年 pachira. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, RequstMethod){
    GET = 1,
    POST = 2,
    DELETE = 3,
    PUT = 4,
};

typedef void(^completedMainBlock)(BOOL success,id response,NSString *errMsg);
@interface HttpRequestManager : NSObject

//+(void)Wechatmethod:(RequstMethod)methodName withURL:(NSString *)url parameters:(NSDictionary *)parameter success:(completedMainBlock)completedMainBlock;

+(void)method:(RequstMethod)methodName withURL:(NSString *)url parameters:(NSDictionary *)parameter success:(completedMainBlock)completedMainBlock;

+(void)upLoadFile:(NSString *)methodName parameters:(NSDictionary *)parameter success:(completedMainBlock)completedMainBlock;

+(void)downloadFile:(NSString *)methodName withDir:(NSString *)dir parameters:(NSDictionary *)parameter success:(completedMainBlock)completedMainBlock;

@end
